﻿<%@ Page Title="Editar Jornada de Cursos" Language="C#" MasterPageFile="~/Master.Master"
    AutoEventWireup="true" CodeBehind="Jornada_Editar.aspx.cs" Inherits="ProjetoJornada.Interno.Jornada_Editar" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../javascript/menu_dropdown.js" type="text/javascript"></script>

    <link href="../CSS/cadastro.css" rel="stylesheet" type="text/css" />

    <script src="../javascript/validacao_mascara.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager" runat="server" 
        EnableScriptGlobalization="True"/>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="margin-top: 20px; text-align: left">
                <asp:Label ID="lblMensagemErro" runat="server" Text="" Font-Size="Smaller"
                    ForeColor="Red"></asp:Label>
                <br />
                <asp:Label ID="Label22" runat="server" Text="Os campos com * são obrigatórios" Font-Size="Smaller"
                    ForeColor="Gray"></asp:Label>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                    ShowSummary="False" />
            </div>
            <div>
                <fieldset id="dados_jornada">
                    <legend>Editar Dados Jornada</legend>
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Nome"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtNomeJornada" runat="server" Width="190px" TabIndex="0"></asp:TextBox>
                                <asp:Label ID="Label18" Style="margin-left: 5px;" runat="server" Text="*" Font-Size="Smaller"
                                    ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator ID="RequiredFieldValidatorNome"
                                        runat="server" ControlToValidate="txtNomeJornada" ErrorMessage="O campo 'Nome da Jornada' é obrigatório"
                                        ForeColor="Red" Font-Size="Smaller" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Data de início"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtDataInicio" runat="server" TabIndex="1" MaxLength="10" onKeyDown="Mascara(this,Data);"
                                    onKeyPress="return somenteNumeros(event); Mascara(this,Data);" onKeyUp="Mascara(this,Data);"></asp:TextBox>
                                <asp:CalendarExtender ID="txtDataInicio_CalendarExtender" runat="server" 
                                    Enabled="True" TargetControlID="txtDataInicio">
                                </asp:CalendarExtender>
                                <asp:Label ID="Label10" Style="margin-left: 5px;" runat="server" Text="*" Font-Size="Smaller"
                                    ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                        runat="server" ControlToValidate="txtDataInicio" ErrorMessage="O campo 'Data de início' é obrigatório"
                                        ForeColor="Red" Font-Size="Smaller" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label3" runat="server" Text="Data do fim"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtDataFim" runat="server" TabIndex="2" MaxLength="10" onKeyDown="Mascara(this,Data);"
                                    onKeyPress="return somenteNumeros(event); Mascara(this,Data);" onKeyUp="Mascara(this,Data);"></asp:TextBox>
                                <asp:CalendarExtender ID="txtDataFim_CalendarExtender" runat="server" 
                                    Enabled="True" TargetControlID="txtDataFim">
                                </asp:CalendarExtender>
                                <asp:Label ID="Label11" Style="margin-left: 5px;" runat="server" Text="*" Font-Size="Smaller"
                                    ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                                        runat="server" ControlToValidate="txtDataFim" ErrorMessage="O campo 'Data do fim' é obrigatório"
                                        ForeColor="Red" Font-Size="Smaller" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset id="dados_responsavel">
                    <legend>Editar Dados Responsável</legend>
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="Label4" runat="server" Text="Nome"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtNomeResponsavel" runat="server" TabIndex="3" Width="190px"></asp:TextBox>
                                <asp:Label ID="Label12" Style="margin-left: 5px;" runat="server" Text="*" Font-Size="Smaller"
                                    ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                                        runat="server" ControlToValidate="txtNomeResponsavel" ErrorMessage="O campo 'Nome do responsável' é obrigatório"
                                        ForeColor="Red" Font-Size="Smaller" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label5" runat="server" Text="CPF"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtCPF" runat="server" TabIndex="4" onKeyDown="Mascara(this,Cpf);" onKeyPress="return somenteNumeros(event); Mascara(this,Cpf);"
                                    onKeyUp="Mascara(this,Cpf);" MaxLength="14"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="2">
                                <asp:Label ID="Label6" runat="server" Text="Cargo"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="CargoDropDownList" TabIndex="5" runat="server" Width="190px" AutoPostBack="True"
                                    OnSelectedIndexChanged="CargoDropDownList_SelectedIndexChanged">
                                    <asp:ListItem></asp:ListItem>
                                    <asp:ListItem Value="1">Diretor (a)</asp:ListItem>
                                    <asp:ListItem Value="2">Gestor (a)</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DropDownList ID="NucleoDropDownList" TabIndex="6" runat="server" Width="190px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label7" runat="server" Text="Email"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" Width="190px" TabIndex="7"></asp:TextBox>
                                <asp:Label ID="Label13" Style="margin-left: 5px;" runat="server" Text="*" Font-Size="Smaller"
                                    ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator ID="RequiredFieldValidator4"
                                        runat="server" ControlToValidate="txtEmail" ErrorMessage="O campo 'Email' é obrigatório"
                                        ForeColor="Red" Font-Size="Smaller" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label8" runat="server" Text="Celular"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtCelular" runat="server" MaxLength="8" TabIndex="8" onKeyPress="return somenteNumeros(event);"></asp:TextBox>
                                <asp:Label ID="Label14" Style="margin-left: 5px;" runat="server" Text="*" Font-Size="Smaller"
                                    ForeColor="Gray"></asp:Label><asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                                        runat="server" ControlToValidate="txtCelular" ErrorMessage="O campo 'Celular' é obrigatório"
                                        ForeColor="Red" Font-Size="Smaller" Display="None"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label9" runat="server" Text="Telefone"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtTelefone" MaxLength="8" runat="server" TabIndex="9" onKeyPress="return somenteNumeros(event);"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </div>
            <div id="botao_cadastrar">
                <asp:ImageButton ID="ibtnEditar" ImageUrl="~/imagens/add.png" TabIndex="10" runat="server" OnClick="ibtnEditar_Click" />
                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                    <ProgressTemplate>
                        <asp:Image ID="imgLoading" ImageUrl="~/imagens/ajax-loader.gif" runat="server" />
                        Carregando...
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
